<?php

namespace App\Admin\Controllers;

use App\Http\Controllers\Controller;
use Encore\Admin\Controllers\Dashboard;
use Encore\Admin\Facades\Admin;
use Encore\Admin\Layout\Column;
use Encore\Admin\Layout\Content;
use Encore\Admin\Layout\Row;
use Illuminate\Support\Facades\Request;

class HomeController extends Controller
{
    public function index()
    {
        return Admin::content(function (Content $content) {

            $content->header('抢车位管理后台');
            $content->description('v1.0');

            //$content->row(Dashboard::title());

            //$content->row(function (Row $row) {
            //
            //    $row->column(12, function (Column $column) {
            //        $column->append(Dashboard::environment());
            //    });

                //$row->column(4, function (Column $column) {
                //    $column->append(Dashboard::extensions());
                //});

                //$row->column(4, function (Column $column) {
                //    $column->append(Dashboard::dependencies());
                //});
            //});
        });
    }
}
